package utils

import (
	"log"
)

func GoFunc(goFunc func()) {

	go func() {
		defer func() {
			if err := recover(); err != nil {
				log.Printf("%+v",err)
				//panic(err)
			}
		}()
		goFunc()
	}()
}
